package example.com.zcq.mymj.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import example.com.zcq.mymj.R;
import example.com.zcq.mymj.util.PreferenceUtils;

public class ExitActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_exit);
        findViewById(R.id.btn_exit).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                PreferenceUtils.write(ExitActivity.this,"namefile","name","");

                ExitActivity.this.finish();
            }
        });
    }
}
